package com.jzo2o.foundations.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.response.ServeAggregationSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeAggregationTypeSimpleResDTO;
import com.jzo2o.foundations.model.dto.response.ServeCategoryResDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-07-03
 */
@Mapper
public interface ServeMapper extends BaseMapper<Serve> {
    /**
     * 根据条件查询服务项列表
     *
     * @param regionId  服务类型id
     * @return 服务项列表
     */
    List<ServeResDTO> queryList(@Param("RegionId") Long regionId);

    List<ServeCategoryResDTO> findServeIconCategoryByRegionId(Long regionId);

    List<ServeAggregationTypeSimpleResDTO> findServeIconCategoryByRegionId2(Long regionId);

    List<ServeAggregationSimpleResDTO> findServeIconCategoryByRegionId3(Long regionId);

    ServeAggregationSimpleResDTO findServeIconCategoryByRegionId4(Long id);
}
